<template>
  <div class="container">
    <div class="inside">
      <a-tabs default-active-key="2">
        <a-tab-pane key="1">
          <span slot="tab">
            <a-icon type="compass" />
            坐标拾取
          </span>
          <div class="comp-container">
            <PickCoordinate></PickCoordinate>
          </div>
        </a-tab-pane>
        <a-tab-pane key="2">
          <span slot="tab">
            <a-icon type="scissor" />
            区域绘制
          </span>
          <div class="comp-container">
            <ElectronicFence></ElectronicFence>
          </div>
        </a-tab-pane>
      </a-tabs>
    </div>
  </div>
</template>

<script>
import ElectronicFence from "@/components/ElectronicFence.vue";
import PickCoordinate from "@/components/PickCoordinate.vue";
export default {
  name: "HelloWorld",
  components: {
    ElectronicFence,
    PickCoordinate,
  },
  props: {
    msg: String,
  },
  data() {
    return {};
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  .inside {
    width: 80%;
    height: 90%;
    .comp-container {
      width: 100%;
      height: 80vh;
      border: 1px solid #1890ff;
    }
  }
}
</style>
